/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

//import anet.channel.strategy.dispatch.DispatchConstants;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class Video {
    @NotNull
    private final String coverImage;
    private final int finishCount;
    private final int textbookId;
    @NotNull
    private final String title;
    private final int totalCount;
    private final int totalPeople;
    @NotNull
    private final String videoKey;
    private final int videoType;
    @NotNull
    private final String videoTypeName;

    public Video(@NotNull String videoKey, int i2, @NotNull String videoTypeName, @NotNull String title, @NotNull String coverImage, int i3, int i4, int i5, int i6) {
        Intrinsics.checkNotNullParameter(videoKey, "videoKey");
        Intrinsics.checkNotNullParameter(videoTypeName, "videoTypeName");
        Intrinsics.checkNotNullParameter(title, "title");
        Intrinsics.checkNotNullParameter(coverImage, "coverImage");
        this.videoKey = videoKey;
        this.videoType = i2;
        this.videoTypeName = videoTypeName;
        this.title = title;
        this.coverImage = coverImage;
        this.totalCount = i3;
        this.finishCount = i4;
        this.totalPeople = i5;
        this.textbookId = i6;
    }

    @NotNull
    public final String component1() {
        return this.videoKey;
    }

    public final int component2() {
        return this.videoType;
    }

    @NotNull
    public final String component3() {
        return this.videoTypeName;
    }

    @NotNull
    public final String component4() {
        return this.title;
    }

    @NotNull
    public final String component5() {
        return this.coverImage;
    }

    public final int component6() {
        return this.totalCount;
    }

    public final int component7() {
        return this.finishCount;
    }

    public final int component8() {
        return this.totalPeople;
    }

    public final int component9() {
        return this.textbookId;
    }

    @NotNull
    public final Video copy(@NotNull String videoKey, int i2, @NotNull String videoTypeName, @NotNull String title, @NotNull String coverImage, int i3, int i4, int i5, int i6) {
        Intrinsics.checkNotNullParameter(videoKey, "videoKey");
        Intrinsics.checkNotNullParameter(videoTypeName, "videoTypeName");
        Intrinsics.checkNotNullParameter(title, "title");
        Intrinsics.checkNotNullParameter(coverImage, "coverImage");
        return new Video(videoKey, i2, videoTypeName, title, coverImage, i3, i4, i5, i6);
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof Video)) {
            return false;
        }
        Video video = (Video) obj;
        return Intrinsics.areEqual(this.videoKey, video.videoKey) && this.videoType == video.videoType && Intrinsics.areEqual(this.videoTypeName, video.videoTypeName) && Intrinsics.areEqual(this.title, video.title) && Intrinsics.areEqual(this.coverImage, video.coverImage) && this.totalCount == video.totalCount && this.finishCount == video.finishCount && this.totalPeople == video.totalPeople && this.textbookId == video.textbookId;
    }

    @NotNull
    public final String getCoverImage() {
        return this.coverImage;
    }

    public final int getFinishCount() {
        return this.finishCount;
    }

    public final int getTextbookId() {
        return this.textbookId;
    }

    @NotNull
    public final String getTitle() {
        return this.title;
    }

    public final int getTotalCount() {
        return this.totalCount;
    }

    public final int getTotalPeople() {
        return this.totalPeople;
    }

    @NotNull
    public final String getVideoKey() {
        return this.videoKey;
    }

    public final int getVideoType() {
        return this.videoType;
    }

    @NotNull
    public final String getVideoTypeName() {
        return this.videoTypeName;
    }

    public int hashCode() {
        return (((((((((((((((this.videoKey.hashCode() * 31) + this.videoType) * 31) + this.videoTypeName.hashCode()) * 31) + this.title.hashCode()) * 31) + this.coverImage.hashCode()) * 31) + this.totalCount) * 31) + this.finishCount) * 31) + this.totalPeople) * 31) + this.textbookId;
    }

    @NotNull
    public String toString() {
        return "Video(videoKey=" + this.videoKey + ", videoType=" + this.videoType + ", videoTypeName=" + this.videoTypeName + ", title=" + this.title + ", coverImage=" + this.coverImage + ", totalCount=" + this.totalCount + ", finishCount=" + this.finishCount + ", totalPeople=" + this.totalPeople + ", textbookId=" + this.textbookId + ')';
    }
}